import mysql from 'mysql2'

const pool = mysql.createPool({
  host:'127.0.0.1',
  port:'3306',
  database:'monkeys',
  user:'root',
  password:'6666'
})
//默认导出一个支持promiseAPI的pool对象
export default pool.promise()
